import { Behaviour, HitTestScript } from "../gameengine";
import { user } from "../user";

export class UIdisappear extends Behaviour {

    protected onStart() {




        this.displayObject.getScript(HitTestScript).onClick = () => {

            this.displayObject.parent.removeChild(this.displayObject);

        }


    }

    protected onUpdate(advancedTime: number) {

    }



}